package cn.flying.cloud.system.common.enums;


import cn.flying.cloud.base.common.enums.BaseEnumInfo;

/**
 * @description: 状态枚举
 * @author: llyong
 * @date: 2019/12/17
 * @time: 22:28
 * @version: 1.0
 */
public enum StatusEnum implements BaseEnumInfo {

    /**
     * 启用状态
     */
    STATUS_Y("Y", "启用"),
    /**
     * 禁用状态
     */
    STATUS_N("N", "禁用"),
    ;

    private String code;
    private String text;

    StatusEnum(String code, String text) {
        this.code = code;
        this.text = text;
    }

    /**
     * 获取枚举码值
     *
     * @return
     */
    @Override
    public String getCode() {
        return code;
    }

    /**
     * 获取枚举描述
     *
     * @return
     */
    @Override
    public String getDesc() {
        return text;
    }
}
